<?php
namespace Admin\Model;
use Think\Model\RelationModel;
class AuthGroupAccess extends RelationModel {
    protected $_link = array(
        'Site' => array(
            'mapping_type'  => self::BELONGS_TO,
            'mapping_name'  => 'site',
            'class_name'    => 'Site',
            'foreign_key'   => 'siteid',
            'mapping_fields' => 'sitename',
        )
    );
}